package com.orphan.supplier.controller;


import com.orphan.supplier.po.Suppliergoods;
import com.orphan.supplier.po.Supplierorder;
import com.orphan.supplier.service.ISuppliergoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>                  
 *  前端控制器
 * </p>
 *
 * @author zjm
 * @since 2021-07-14
 */
@RestController
@RequestMapping("/suppliergoods")
public class SuppliergoodsController {

    @Resource
    ISuppliergoodsService iSuppliergoodsService;
    @PostMapping("/addGoods")
    public Object addGoods(@RequestBody Suppliergoods suppliergoods) {
        iSuppliergoodsService.addGoods(suppliergoods);
        return null;
    }
}
